<!DOCTYPE html>
<html lang="en">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
      name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<title>旧车详情App</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/dist/css/oa-app.css">
<link rel="stylesheet" href="/dist/css/OA.min.css?t=f5a12a1d">
<style>
    #app{
        margin-right: 0px;
    }
    .biTian {
        position: absolute;
        margin-left: -10px;
        margin-top: 1px;
    }
    td{
        color: #228bee;
    }
    #divUploadedFiles{
        /*padding: 4px;*/
        padding-bottom: 0;
    }
    [v-cloak]{
        display: none;
    }
    table{
        border:none;
    }
</style>
<head>

</head>
<body>
<div id="app" v-cloak >
    <table class="oa-table ">
        <thead>
        <tr class="oa-table-title" >
            <th>公司人员信息</th>
        </tr>
        </thead>
    </table>
    <table class="oa-table ">
        <tbody>
        <tr class="oa-table-title-gray">
            <th style="width:25%;border-top:none"><i class="biTian">*</i>归属公司</th>
            <td style="width: 75%;border-top:none;text-align: left;padding-left: 4px" colspan="3" >{{displace.companyName}}</tr>
        <tr class="oa-table-title-gray">
            <th style="width:25%;border-top: none">区域</th>
            <td style="width: 75%;border-top: none;text-align: left;padding-left: 4px" colspan="3">{{displace.regionName}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="width:25%;border-top: none">大区经理</th>
            <td style="width:25%;border-top: none;text-align: left;padding-left: 4px">{{displace.bigregionManagerName}}</td>
            <th style="width:25%;border-top: none">区域经理</th>
            <td style="width:25%;border-top: none;text-align: left;padding-left: 4px">{{displace.bigregionManagerName}}</td>
        </tr>
        </tbody>
    </table>
    <table class="oa-table ">
        <thead>
        <tr class="oa-table-title" >
            <th style="border-top: none">设备信息</th>
        </tr>
        </thead>
    </table>
    <table class="oa-table ">
        <tbody>
        <tr class="oa-table-title-gray">
            <th style="border-top: none"><i class="biTian">*</i>品牌</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.brandName}}</td>
            <th style="border-top: none"><i class="biTian">*</i>汽车类型</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.replacementType}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none"><i class="biTian">*</i>型号</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.modelName}}</td>
            <th style="border-top: none"><i class="biTian">*</i>车架号</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.sequence}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">出厂年份</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.factoryDate}}</td>
            <th style="border-top: none">公里数(公里)</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.kilometers}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">库存地</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.storeAddress}}</td>
            <th style="border-top: none"><i class="biTian">*</i>状态</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.state}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">是否过户</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.transfer}}</td>
            <th style="border-top: none">保险到期日</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{displace.insuranceExpirationDate}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">评估价格(元)</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{fmoney(displace.estimatePrice)}}</td>
            <th style="border-top: none">置换价格(元)</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{fmoney(displace.replacementPrice)}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">出售价格(元)</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{fmoney(displace.sellPrice)!=0?displace.sellPrice:"未出售"}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none"> 机动车登记证书/行驶证/合同/协议/发票(元)</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in displace.attaches">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
               <!-- <div id="divUploadedFiles">
                    <div class="fj-tanzhongStyle "  v-for="(attach,i) in displace.attaches">
                        <b :class="fjStyle(attach.name)"></b>
                        <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                    </div>
                </div>-->
            </td>
        </tr>
        <tr  class="oa-lineTwo-H">
            <th style="border-top: none;background: #f8f8f8">备注</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{displace.remark}}</td>
        </tr>
        </tbody>
    </table>
    <!--出库记录-->
    <table class="oa-table " :style="outBound.main.type==0?'display:;':'display:none'" id="outBound">
        <thead>
        <tr class="oa-table-title" >
            <th colspan="4" style="border-top: none">出库记录</th>
        </tr>
        </thead>
        <tbody>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">提车地址</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{outBound.main.pickUpAddress}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">联系人</th>
            <td style="border-top: none;text-align: left;padding-left: 4px">{{outBound.main.pickUpContacts}}</td>
            <th style="border-top: none">联系电话</th>
            <td style="border-top: none;text-align: left;padding-left: 4px">{{outBound.main.pickUpTelephone}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">交车地址</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{outBound.main.delivery_address}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">联系人</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{outBound.main.deliveryContacts}}</td>
            <th style="border-top: none">联系电话</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{outBound.main.deliveryTelephone}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">司机证件</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in outBound.certificates">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
               <!-- <div class="fj-tanzhongStyle "  v-for="(attach,i) in outBound.certificates">
                    <b :class="fjStyle(attach.name)"></b>
                    <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                </div>-->
            </td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">设备照片</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in outBound.devicePictures">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
               <!-- <div class="fj-tanzhongStyle "  v-for="(attach,i) in outBound.devicePictures">
                    <b :class="fjStyle(attach.name)"></b>
                    <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                </div>-->
            </td>
        </tr>
        <tr  class="oa-lineTwo-H">
            <th style="border-top: none;background: #f8f8f8">备注</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{outBound.main.remark}}</td>
        </tr>
        </tbody>
    </table>
    <!--移库记录-->
    <table class="oa-table "  :style="moveBound.main.type==1?'display:block;':'display:none'" id="moveBound">
        <thead>
        <tr class="oa-table-title" >
            <th style="border-top: none">移库记录</th>
        </tr>
        </thead>
        <tbody>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">提车地址</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{moveBound.main.pickUpAddress}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">联系人</th>
            <td style="border-top: none;text-align: left;padding-left: 4px">{{moveBound.main.pickUpContacts}}</td>
            <th style="border-top: none">联系电话</th>
            <td style="border-top: none;text-align: left;padding-left: 4px">{{moveBound.main.pickUpTelephone}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">新库存地</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{moveBound.main.delivery_address}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">联系人</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{moveBound.main.deliveryContacts}}</td>
            <th style="border-top: none">联系电话</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{moveBound.main.deliveryTelephone}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">司机证件</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in moveBound.certificates">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
               <!-- <div class="fj-tanzhongStyle "  v-for="(attach,i) in moveBound.certificates">
                    <b :class="fjStyle(attach.name)"></b>
                    <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                </div>-->
            </td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">设备照片</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in outBound.devicePictures">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
              <!--  <div class="fj-tanzhongStyle "  v-for="(attach,i) in moveBound.devicePictures">
                    <b :class="fjStyle(attach.name)"></b>
                    <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                </div>-->
            </td>
        </tr>
        <tr  class="oa-lineTwo-H">
            <th style="border-top: none;background: #f8f8f8">备注</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{moveBound.main.remark}}</td>
        </tr>
        </tbody>
    </table>
    <!--退货记录-->
    <table class="oa-table "  :style="returnBound.main.type==2?'display:block;':'display:none'" id="returnBound">
        <thead>
        <tr class="oa-table-title" >
            <th style="border-top: none">退货记录</th>
        </tr>
        </thead>
        <tbody>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">提车地址</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{returnBound.main.pickUpAddress}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">联系人</th>
            <td style="border-top: none;text-align: left;padding-left: 4px">{{returnBound.main.pickUpContacts}}</td>
            <th style="border-top: none">联系电话</th>
            <td style="border-top: none;text-align: left;padding-left: 4px">{{returnBound.main.pickUpTelephone}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">退库存地</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{returnBound.main.delivery_address}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">联系人</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{returnBound.main.deliveryContacts}}</td>
            <th style="border-top: none">联系电话</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" >{{returnBound.main.deliveryTelephone}}</td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">司机证件</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in returnBound.certificates">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
                <!--<div class="fj-tanzhongStyle "  v-for="(attach,i) in returnBound.certificates">
                    <b :class="fjStyle(attach.name)"></b>
                    <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                </div>-->
            </td>
        </tr>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">设备照片</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">
                <div class="fj-tanzhongStyle fj-one-tanzhongStyle"  v-for="(attach,i) in returnBound.devicePictures">
                    <b :class="fjStyle(attach.url)"></b>
                    <div class="name" style="width: 165px;" :title="attach.name"
                         v-on:click="look(attach.url)">
                        {{attach.name}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(attach.url)">下载</a>
                    </div>
                </div>
                <!--<div class="fj-tanzhongStyle "  v-for="(attach,i) in returnBound.devicePictures">
                    <b :class="fjStyle(attach.name)"></b>
                    <div class="name" v-if="attach.name" :title="attach.name" v-on:click="download(attach.url,attach.name)">{{attach.name}}</div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link" v-on:click="download(attach.url,attach.name)">下载</a></div>
                </div>-->
            </td>
        </tr>
        <tr  class="oa-lineTwo-H">
            <th style="border-top: none;background: #f8f8f8">备注</th>
            <td style="border-top: none;text-align: left;padding-left: 4px" colspan="3">{{returnBound.main.remark}}</td>
        </tr>
        </tbody>
    </table>
    <table class="oa-table ">
        <thead>
        <tr class="oa-table-title">
            <th style="border-top: none">审批进度</th>
        </tr>
        </thead>
    </table>
    <table class="oa-table ">
        <tbody>
        <tr class="oa-table-title-gray">
            <th style="border-top: none">审核人员</th>
            <th style="border-top: none">审核状态</th>
            <th style="border-top: none">审核时间</th>
            <th style="border-top: none">审核意见</th>
        </tr>
        <tr class="oa-table-title-gray">
            <td style="border-top: none">{{displace.auditName}}</td>
            <td style="border-top: none">{{convertAuditFlagToName(displace.auditFlag)}}</td>
            <td style="border-top: none">{{formatDate(displace.auditTime)}}</td>
            <td style="border-top: none">{{displace.auditAdvise}}</td>
        </tr>
        </tbody>
    </table>
</div>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script src="https://file.ggxqce.com/web/axios.min.js"></script>
<script src="/dist/js/newOaApp.js"></script>
<script type="text/javascript">
    var app = new Vue({
        el:'#app',
        data:{
            id:getUrlParamObj().id,
            displace:{},
            pageType:getUrlParamObj().pageType,
            outType: '0',
            /*出库*/
            outBound: {
                certificates: [],//司机证件
                devicePictures: [],//设备照片
                drayPictures: [],//板车照片
                attaches: [],
                main: {
                    id: '',
                    sampleId: '',
                    type: -1,//出库类型0-出库，1-移库，2-退货
                    pickUpAddress: '',//提车地址
                    pickUpContacts: '',//提车联系人
                    pickUpTelephone: '',//提车电话
                    delivery_address: '',//轿车地址
                    deliveryContacts: '',
                    deliveryTelephone: '',
                    transport_company: '',//运输公司
                    contacts: '',//运输公司联系人
                    telephone: '',//电话
                    dray_license: '',//板车车牌
                    driver_name: '',//司机姓名
                    driver_tel: '',
                    special_fee: 0.00,//运费
                    deduction_fee: 0.00,//扣款
                    deduction_remark: '',//扣款说明
                    remark: '',
                    trafficDestination: '',
                    trafficStarting: '',
                    reason: '',
                    createTime: '',
                    updateTime: '',
                    contractId: '',
                }
            },
            moveBound: {
                certificates: [],//司机证件
                devicePictures: [],//设备照片
                drayPictures: [],//板车照片
                attaches: [],
                main: {
                    id: '',
                    sampleId: '',
                    type: -1,//出库类型0-出库，1-移库，2-退货
                    pickUpAddress: '',//提车地址
                    pickUpContacts: '',//提车联系人
                    pickUpTelephone: '',//提车电话
                    delivery_address: '',//轿车地址
                    deliveryContacts: '',
                    deliveryTelephone: '',
                    transport_company: '',//运输公司
                    contacts: '',//运输公司联系人
                    telephone: '',//电话
                    dray_license: '',//板车车牌
                    driver_name: '',//司机姓名
                    driver_tel: '',
                    special_fee: 0.00,//运费
                    deduction_fee: 0.00,//扣款
                    deduction_remark: '',//扣款说明
                    remark: '',
                    trafficDestination: '',
                    trafficStarting: '',
                    reason: '',
                    createTime: '',
                    updateTime: '',
                    contractId: '',
                }
            },
            returnBound: {
                certificates: [],//司机证件
                devicePictures: [],//设备照片
                drayPictures: [],//板车照片
                attaches: [],
                main: {
                    id: '',
                    sampleId: '',
                    type: -1,//出库类型0-出库，1-移库，2-退货
                    pickUpAddress: '',//提车地址
                    pickUpContacts: '',//提车联系人
                    pickUpTelephone: '',//提车电话
                    delivery_address: '',//轿车地址
                    deliveryContacts: '',
                    deliveryTelephone: '',
                    transport_company: '',//运输公司
                    contacts: '',//运输公司联系人
                    telephone: '',//电话
                    dray_license: '',//板车车牌
                    driver_name: '',//司机姓名
                    driver_tel: '',
                    special_fee: 0.00,//运费
                    deduction_fee: 0.00,//扣款
                    deduction_remark: '',//扣款说明
                    remark: '',
                    trafficDestination: '',
                    trafficStarting: '',
                    reason: '',
                    createTime: '',
                    updateTime: '',
                    contractId: '',
                }
            },
        },
        methods:{
            formatDate: function (now) {
//                return  NewDate(now).Format(TimeFormat.pcList)
                if(now){
                    return new Date(now).Format(TimeFormat.middle)
                }else{
                    return  "";
                }

            },
            getOldCarDetail:function () {
                var that = this;
                that.showLoading();
                axios.post("/deviceDisplace/getDisplaceById.json", {id:that.id})
                    .then(function (r) {
                        that.displace = r.displace;
                        console.log(r)
                        /*出库*/
                        if (r.outBoundRecord.flag == 1) {
                            that.outBound.main = r.outBoundRecord.main;
                            that.outType = that.outBound.main.type;
                            that.outBound.certificates = r.outCertificates;
                            that.outBound.devicePictures = r.outDevicePictures;
                            that.outBound.drayPictures = r.outDrayPictures;

                        } else {
                            that.outBound.main = "";
                           /* $("#outBound").hide();*/
                        }
                        /*移库*/
                        if (r.moveBoundRecord.flag == 1) {
                            that.moveBound.main = r.moveBoundRecord.main;
                            that.outType = that.moveBound.main.type;
                            that.moveBound.certificates = r.moveCertificates;
                            that.moveBound.devicePictures = r.moveDevicePictures;
                            that.moveBound.drayPictures = r.moveDrayPictures;
                        } else {
                            that.moveBound.main = "";
                           /* $("#moveBound").hide();*/
                        }
                        /*退货*/
                        if (r.returnBoundRecord.flag == 1) {
                            that.returnBound.main = r.returnBoundRecord.main;
                            that.outType = that.returnBound.main.type;
                            that.returnBound.certificates = r.returnCertificates;
                            that.returnBound.devicePictures = r.returnDevicePictures;
                            that.returnBound.drayPictures = r.returnDrayPictures;
                        } else {
                            that.returnBound.main = "";
                            /*$("#returnBound").hide();*/
                        }

                        console.log(that.oldCarInfo)
                        console.log(that.displace.replacementPrice)
                        that.hideLoading()
                    })
            },
            /*数字判断限制*/
            fmoney: function (s, n) {

                    n = n > 0 && n <= 20 ? n : 2;
                    s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed(n) + "";
                    var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1],
                        t = "";
                    for (i = 0; i < l.length; i++) {
                        t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
                    }
                    return t.split("").reverse().join("") + "." + r;

            },
            fjStyle:function(fjName){
                if(fjName){
                    var type=fjName.substring(fjName.lastIndexOf('.') + 1);
                    return 'img fj-'+type
                }
                return 'img'
            },
            look: function (url) {
                var param = {
                    url: url,
                }
                JSBridge.call(FILE, 'showFile', param)
            },
            download: function (attachId, fileName) {
                downloadFile(attachId,fileName)
                return false;
            },
            convertAuditFlagToName: function (auditFlag) {
                //auditFlag:-1,0,1,2,3,4,5,6
                switch (auditFlag) {
                    case -1:
                        return "未提交";
                        break;
                    case 0:
                        return "审核中";
                        break;
                    case 1:
                        return "通过";
                        break;
                    case 2:
                        return "驳回";
                        break;
                    default :
                        break;
                }
            },
            showLoading: function () {
                var that = this
                var param = {
                    cancelable: false
                }
                JSBridge.call(UI, 'showLoading', param)


            },
            hideLoading: function () {
                JSBridge.call(UI, 'hideLoading')
            }
        },
        mounted:function () {
            var that=this;
            that.getOldCarDetail();
        }
    })
</script>
</body>
</html>